package case_library

import (
	"github.com/flipped-aurora/gin-vue-admin/server/api/v1"
	"github.com/flipped-aurora/gin-vue-admin/server/middleware"
	"github.com/gin-gonic/gin"
)

type Case_structRouter struct {
}

// InitCase_structRouter 初始化 Case_struct 路由信息
func (s *Case_structRouter) InitCase_structRouter(Router *gin.RouterGroup) {
	case_Router := Router.Group("case_").Use(middleware.OperationRecord())
	case_RouterWithoutRecord := Router.Group("case_")
	var case_Api = v1.ApiGroupApp.Case_libraryApiGroup.Case_structApi
	{
		case_Router.POST("createCase_struct", case_Api.CreateCase_struct)   // 新建Case_struct
		case_Router.DELETE("deleteCase_struct", case_Api.DeleteCase_struct) // 删除Case_struct
		case_Router.DELETE("deleteCase_structByIds", case_Api.DeleteCase_structByIds) // 批量删除Case_struct
		case_Router.PUT("updateCase_struct", case_Api.UpdateCase_struct)    // 更新Case_struct
	}
	{
		case_RouterWithoutRecord.GET("findCase_struct", case_Api.FindCase_struct)        // 根据ID获取Case_struct
		case_RouterWithoutRecord.GET("getCase_structList", case_Api.GetCase_structList)  // 获取Case_struct列表
	}
}
